﻿<%@ Page PathInChannel="index{Ext}" %>
<!doctype html>
<html>
<head>
<ali:Get ID="MySite" Object="Site" PageID="Request.QueryString['SiteID']" ForMeta="true" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title><%=MySite[Name]%></title>
<link rel="stylesheet" href="<%=CommonPath%>jquery/mobile/style.css">
<link rel="stylesheet" href="<%=CssPath%>common.css">
</head>
<body>
<div data-role="page">
	<div data-role="content">
		<%If !Convert.IsDBNull(MySite[Banner])%>
			<img src="<%=MySite[Banner]%>" alt="<%=MySite[Name]%>" class="banner">
		<%EndIf%>
	</div>
	
	<ali:List Object="Menu" Condition="IsDisplay=true and ParentID IS NULL and CategoryID IS NULL and SubInstanceID=MySite[SubInstanceID]">
		<footer class="footer" data-role="footer" data-position="fixed">
			<div>
				<ul class="slides">
					<ali:Row MaxCol="1">
						<ali:Col MaxRecord="4">
							<li>
								<ali:Record>
									<%If Convert.ToString(Type) == "Content"%>
										<a href="<%=BuildUrl()%>">
											<%If Convert.ToString(Picture) != ""%>
												<img src="<%=Picture%>" alt="<%=Name%>">
											<%EndIf%>
											<span><%=Name%></span>
										</a>
									<%Else%>
										<a href="<%=Path%>">
											<%If Convert.ToString(Picture) != ""%>
												<img src="<%=Picture%>" alt="<%=Name%>">
											<%EndIf%>
											<span><%=Name%></span>
										</a>
									<%EndIf%>
								</ali:Record>
							</li>
						</ali:Col>
					</ali:Row>
				</ul>
			</div>
		</footer>
	</ali:List>
</div>

<script src="<%=CommonPath%>jquery/core2.js"></script>
<script src="<%=CommonPath%>jquery/mobile.js"></script>
<script src="<%=JsPath%>jquery.flexslider.js"></script>
<script src="<%=JsPath%>common.js"></script>
</body>
</html>
